package dshop.model;

import java.util.Date;

import appbase.jfinal.ext.BaseModel;
import dshop.AppConst;

public class UserInfo extends BaseModel<UserInfo>{
	
	private static final long serialVersionUID = -6967680902549117464L;
	
	public static final UserInfo dao = new UserInfo();

	
	public static UserInfo create(String nickName, String headImg, String tel) 
	{
		UserInfo user = new UserInfo();
		user.set("nickName", nickName)
			.set("headImg", headImg)
			.set("tel", tel)
			.set("createTime", new Date());
		return user;
	}
	
	public static void delete(int id) 
	{
		dao.updateColumnBy("isDel", "id", AppConst.DELETE_YES, id);
	}
}
